﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace PipeAuto.DAL.PipeAutoDataSetTableAdapters
{
    public partial class VisualStockOutsTableAdapter
    {
        public PipeAutoDataSet.VisualStockOutsDataTable GetDataByCmdFilter(SqlCommand filterCmd)
        {
            //process command
            filterCmd.CommandText = CommandCollection[0].CommandText + filterCmd.CommandText;
            filterCmd.Connection = this.Connection;


            this.Adapter.SelectCommand = filterCmd;
            PipeAutoDataSet.VisualStockOutsDataTable dataTable = new PipeAutoDataSet.VisualStockOutsDataTable();
            this.Adapter.Fill(dataTable);
            return dataTable;
        }
    }

    public partial class StockOutsTableAdapter
    {
    }

    public partial class VisualStockOutDocsTableAdapter
    {
        public PipeAutoDataSet.VisualStockOutDocsDataTable GetDataByCmdFilter(SqlCommand filterCmd)
        {
            //process command
            filterCmd.CommandText = CommandCollection[0].CommandText + filterCmd.CommandText;
            filterCmd.Connection = this.Connection;


            this.Adapter.SelectCommand = filterCmd;
            var dataTable = new PipeAutoDataSet.VisualStockOutDocsDataTable();
            this.Adapter.Fill(dataTable);
            return dataTable;
        }
    }
}
